home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / date.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  2.1 KB  |  84 lines

  1. DATE
  2.  
  3. Displays or sets the system date and/or time.
  4.  
  5. Format
  6.  
  7. DATE [<day>] [<date>] [<time>] [TO | VER <filename>]
  8.  
  9. Template
  10.  
  11. DAY,DATE,TIME,TO=VER/K
  12.  
  13. Location
  14.  
  15. C:
  16.  
  17. DATE with no argument displays the currently set system time and date,
  18. including the day of the week. Time is displayed using a 24-hour clock.
  19.  
  20. DATE <date> sets only the date. The format for entry and display of <date> is
  21. DD-MMM-YY (day-month-year). The hyphens between the arguments are required. A
  22. leading zero in the date is not necessary. The number or the first three
  23. letters of the month (in English) must be used, as well as the last two
  24. digits of the year.
  25.  
  26. If the date is already set, you can reset it by specifying a day name. You
  27. can also use tomorrow or yesterday as the <day> argument. You cannot specify
  28. a day name to change the date to more than seven days into the future.
  29.  
  30. DATE <time> sets the time. The format for entry and display of <time> is
  31. HH:MM:SS (hours:minutes:seconds). Seconds is optional.
  32.  
  33. If your Amiga does not have a battery backed-up hardware clock and you do not
  34. set the date, when the system boots it sets the date to the date of the most
  35. recently created file on the boot disk.
  36.  
  37. If you specify the TO or VER option, followed by a file name, the output of
  38. the DATE command is sent to that file, overwriting any existing contents.
  39.  
  40. Adjustments made with DATE only change the software clock and do not survive
  41. powering off the system. To set the battery backed-up hardware clock from the
  42. Shell, you must set the date and use SETCLOCK SAVE.
  43.  
  44. Although DATE accepts and displays the date and time in a single format,
  45. programs such as Clock display the date and time according to your Locale
  46. country setting.
  47.  
  48. Example 1:
  49.  
  50. 1> DATE
  51.  
  52. 6-Sep-92
  53.  
  54. Example 2:
  55.  
  56. 1> DATE 6-sep-92
  57.  
  58. sets the date to September 6, 1992. The time is not reset.
  59.  
  60. Example 3:
  61.  
  62. 1> DATE tomorrow
  63.  
  64. resets the date to one day ahead.
  65.  
  66. Example 4:
  67.  
  68. 1> DATE TO Fred
  69.  
  70. sends the current date to the file Fred.
  71.  
  72. Example 5:
  73.  
  74. 1> DATE 23:00
  75.  
  76. sets the current time to 11:00 p.m.
  77.  
  78. Example 6:
  79.  
  80. 1> DATE 1-jan-02
  81.  
  82. sets the date to January 1st, 2002. The earliest date you can set is January
  83. 1, 1978.
  84.